<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    var str = "hgf#$adas%has131.2h_f*()+h1A23.3-4Aq...e.13jjAg_(j78.8asdas";
    console.log(str);

    // console.log(str.replace( /a/ ,"啊"));
    // console.log(str.replace( /a/g ,"啊"));
    // console.log(str.replace( /a/ig ,"啊"));
    // console.log(str.replace( /1/g ,"啊"));
    // console.log(str.replace( /1|2/g ,"啊"));
    // console.log(str.replace( /1|2|3|4|5|6|7|8|9|0/g ,"啊"));
    // console.log(str.replace( /[1234567890]/g ,"啊"));
    // console.log(str.replace( /[0-9]/g ,"啊"));
    // console.log(str.replace( /\d/g ,"啊"));
    // console.log(str.replace( /[a-z]/g ,"啊"))
    // console.log(str.replace( /[a-z]/ig ,"啊"))
    // console.log(str.replace( /[a-zA-Z]/g ,"啊"))
    // console.log(str.replace( /[a-z0-9A-Z]/g ,"啊"))
    // console.log(str.replace( /[a-zA-Z]{2}/g ,"啊"))
    // console.log(str.replace( /[a-zA-Z]{1,2}/g ,"啊"))
    // console.log(str.replace( /[a-zA-Z]{1,}/g ,"啊"))
    // console.log(str.replace( /[a-zA-Z]+/g ,"啊"))
    // console.log(str.replace( /[^a-zA-Z]+/g ,"啊"))
    // console.log(str.replace( /[\W0-9_]+/g ,"啊"))
    // console.log(str.replace( /.+/g ,"啊"))
    // console.log(str.replace( /\.+/g ,"啊"))
    




    


</script>
</html>